updates to parseFile to use updated parent constructor, and a more reusable interface