Added ls function. Junk data no longer appended to strings written to client