refactored to make more robust
removed extraneous debug statement
Merge pull request #45 from biometrics/file_parsing

File parsing