Unclutter main function

Why was everything inside main()?
More code cosmesis
Final touch to the UI