Working function to compute osculating elements 

The functions to convert state vectors to keplerian elements are now tested and known to work.