Simplified parse function
Added tracing for debugging.
Merge pull request #40 from Winston-Chan/nathan

Debugging stuff