documentation and some styling updates. concede that global functions cant work in IE8