Rewrite lib/watch.js
Change watch polling interval
Complete lib/watch.js