finished parser to allow parsing a whole file, added composer