add sync functions
style fixes
add back error handling in cmd.js
Support node 0.11 (fix #8)
1.0.0