minor imporvements: comments, output