Docs, tests, main refactor, and beginnings of parser