tweaks to styles and functionality, added comments