docs & tests for motion
minor conceptual changes
grounddetector docs & tests + little fixes