updated comments, cleaned up code
updated typo.html demo to match stylesheets

TODO: addresses in typo.html