Add doc generation Makefile target
Add misc tests to enhance code coverage
Fix node 0.8 issues