updated readme, and cleaned up main.js