* Committing refactoring after long bug hunt for what seems to be an overflow error in reading in the grammar