First draft of text parser decoder that compiles ok, hasn't been tested yet.