Ignore comments and blank lines when parsing

Fixes #2.