Feature cmd put

Tested issue #14, works fine for put and #5