Implemented disconnect when app goes to background and reconnect when going to foreground, changed connect operation to use blocks, implemented parameter for number of touches and exposed a setting for setting active sides.