fix and test Bytes() methods
add some documentation and slightly change api