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 some python code got mixed in with some R code