Added a bytebuffer library. This will be probably moved to aux.
Some modifications in memblocks to load and save the atlas.