initial commit for object oriented implementation of mb0

combined from separated repos