Dropped C parser, rewrote in C#. Added tests