changed to use nofix data
fixed location to save data
added necessary imports
fixed location for output