Added functionality to parse files.  Still needs some work for error checking.