Allow double positions for ROIs.
Fix error in distance calculation.
First version of Dynamic task.
closes #44.