Update README.md, fix broken code in detector package, fix other minor bugs, update tests.