update README
add unit tests with nodeunit. refactor ddg lib