Moved accelerometer code from MInCAppDelegate class to FirstViewController class.