Fixde regex docstrings
Added comments to parser
Added errors
Fixed some bugs