intial
initial
finishing up functionality, and some mocha tests