Started refactoring
Error handling
Added low-level parser module