Fixed up chat and stopchat command.. fixed #10
added cli tests