Finished refactoring parser, moved library => src

Fixes #2