Changed Thread to Topic, moved time stamps, updated clearInput function