Moved "main" method at the bottom of the code

Stylistic preference. I prefer having "main" either at the top or the bottom of the code.