Removed dependency on matplotlib and pyephem. Added own hand coded conversions.