added a class that extends atomic_base for wrapping DynamicLibModels
renamed all long ints to longs for brevity