Moving files, renaming, changing imports

Also, test for “__main__” is no longer a function. It was too messy to
have two import statements, and so every file now has a check for main
at the top