Changes potential_script to a function,

Adds save_files.m which saves workspaces and plots.
Smooths fourier transforms.