Improve ByteRun and ByteRuns objects
Add tests for ByteRun
Fix bug in tools.py