added comments and doc string to star/gal example