Stars module

Also added more comments for clarity.