cleaned up a lot of code
moved everything into a build dir
added comments to js
updated description
fixed #11 and #12