Updated NameGen.java, moved part of parseFile into another function.