added functionality and fixed syntax errors
fixed pythons dumb indent errors
some fectoring of views module
buncha syntax errors fixed...for now
buncha syntax errors fixed...for now