Fixed a client/ctx bug, added more commands to client