revert data.py to previous version which worked with datamanager.
add validation to MKStruct class.