added svm, fixes to other parts, saving plots to file, os.path.join used for cross platform compatibility