v1.0001

cleaned up more code and fixed figure legends