add comments and gems to app generator and clean up