integrated windows sum functionality
Merge branch 'master' of https://github.com/Vivarana/FYP

Conflicts:
	vivarana/templates/vivarana/visualize.html
refactored code