Changed core version to match MAME version
Implement proper exit sequence
Fixed MAME core logging

It will now enter verbose mode if compilef for Debug
Add basic input support