Remove dead code
remove old import statements
Rename main to base to clarify entry point