tested and fixed to work in node 0.8
0.1.0 fully tested and minimally documented version