Fixed up some errors after testing.
Added .gitignore.