Implemented cp function
Implemented mv function, plus bug fix