Made a clean version and changed to use pyephem for all ephemeris calculations.