changed offset calculations

added test moveTo
added different offset calculations