total API redux. added mocha. working on unit test & getting back to running code.