Created lua module to connect to the socket terminal created by LuaTerminal and finished history debugging.