Re-organized program files a bit

Create a run.pyw file in the root directory that can be used to run the
program without a console.
Fixed a couple other bugs.