Tidy up code and make comments compatible with YUIdoc
Merge https://github.com/pabloae/encjson