Fixed formatting
Calculation now based on astrolib
Merge pull request #1080 from gerrieg/astro

Astro: calculation now based on astrolib