Added functions to add, remove and set number of bytes.
Removed old code
Added some comments