Fixed error handling, added unit support to move().

Tested using mock device, but not with actual device yet.