Added wired_main.h, a function to stop recording the conversation, and misc changes.