fixing bugs brought up by writing add tests and starting add tests
removing old init.js file