Revert to recursion
Oops... Fix bug
Merge pull request #12 from alexander-myltsev/fix-readbytes

Fix readbytes