Three body dynamics and its applications to exoplanets. (2017)