Finished switch case for two modes in importexport. Removed option for inverse functional mapping for now.