Small bug fixes
Added param checking function and basic param checking for the move function