Fixed parsing to handle comments for SNAP datasets.