fixed parser code and updated driver to pass a list instead of a raw file.