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.
@theengineear Just a detail, but I think filename should be set before fileopt