added better parsing of nexus file and correct handling of protei model file