Switch `detect` to `detect(src)`

Closes #2