Fixed some problems with the gravity function, where some of the objects was not effected. Fixed problem with potential energy calculations, so they are correct.
Still need som work, to get the plots in the best format.