Working

This version works with the megafunction and .mif files. Inferred memory
does not work with .mif files