initial version of AMPX_loadData and helpers

also added AMPX_loadMetaFile
renamed some legacy files