integrated library.js into the main file.  rewrote readme