Compact and flexible code-reading systems are reliable, fast and versatile