added command help, moved options printing into template functions