Rewrote the majority of the wapiti parser to simplify markdown generation and to clean up code. Added basic None check unit test