Added some usabilty functions to the graphing as well as removed some uneeded code
Stop varibles with non alphannumeric characters erring the html elector
Small bug fixes from jess and sentry