Add debug option (and clean up a little)
Output decoded datum when debugging
Refactor a bit
Merge pull request #7 from anchor/wip-debugoutput

Add option for debug output