views refactoring
code refactoring
code refactoring to satisfy pep8
copyrights, and minor fixes
js console logging removed