major updates

finished state class
finished idxd class
fixed minor bugs in idx class
started on module base class in NetLearn