Added *.exe to gitignore and minor code restructure.