Moved constants and distance calculation to a module.
rewritten the message so that it is one multi line template.
fixed a bug in while loop, added a test if the new input is a known star and
break the loop.
added \n at the end of file
Merge pull request #2 from Ferengee/master

separate calculations into methods and create a module for generic methods and constants