fixed seeking, asserts, and unified encode-/decode

…functions with their buffer

fixes #1
Merge branch 'master' of github.com:flying-sheep/bcode