Style changes

-Made bunch of style changes
-simplified clear report function in lib.js
-fixed bunch of bugs