move main into ToC module
derive serializable for GXData and write/load to/from disk
get rid of AttrMap in Function and Method