Some bugs fixed.
Added -> Error handling, define target dir from client.