Making minor changes. Fixed bug where parser would continue parsing even on invalid filename