view.py added a main() function
Merge pull request #18 from Mordeaux/patch-1

view.py added a main() function