Iteration 2 cleanup

cleaning up code and generating yuidoc for iteration 2