grounddetector docs & tests + little fixes