issue #140 implement support for loops and delays
fix "moves" attribute saving when not needed. Update location data to canonical form