Fixed some problems
Implemented Exit() for Windows Phone 8