Moved the executable into the main file
Removed some commented out code
Added a kill listener that emits a close event