added support for comments at end of line