fixed a few minore issues in NEXUS file parser