Refactored "messageFromTapInterfaceDispatcher"
Made "client" global
Made client global to main, moved messageFromTapInterfaceDispatcher to main to avoid scope issues with client