created plotting file, minor fixes