Fixed a few bugs. Plotted data in F domain. More bugs to fix