Andrew obliterate and redo

Much cleaner redo, started from scratch to make sure all these urls are up to date. Still need to run the matlab scripts.
looks like the import statements got moved to below the variable assignments