Refactor cmd's

Started on put text/binary file capability