Added version 3 data structures
Made many changes to support version 3 files. Testing is needed.
Added interaction types