basic port of mod log matrix to tbobject

ref #251