Added license, put old version of the file

The "oldmain.py" file is pretty much the entire thing written in one big
file. It was before I refactored everything.