Created function to be codegened

Also made changes to testing script "testOFDMA"