added support for comments (fixes #1)