Refactoring and cleanup of tapectrl.? and bbcontrl.?, created base class