Refactoring initialize. Created the sambadrum namespace and the bufferize function