Fixed a major bug related to saving and loading tables, and added some more functions.