Added more tests. Fixed issues found during testing in the parser. Cleaned up the processor a lot, though still not finished.