minor changes

added comments and output options