structure hierarchy rebuilt, all functions r in .h file. I/O functions r OK, sorting function is not implemented yet