removed some extra lines of commented out code
added a licence
changing the parsing function to use the match prefex function instead of manually doing it