added functionality to be able to parse files in different formats and updated docs. fixes #6
updated spec file to reflect r6