Merge pull request #4 from camillescott/master

debugging code for gd parsing problem
added dbg outputs
prettier printing