Add some copy ctors, fix some bugs, finish get and inv commands