Add functionality to background, reset, close and launch an app

Would it be possible to use `NSInteger` instead of `int`?