correcting docs properties.saveTo takes a file path as string, not a file object.

loadProperties also takes a string path