Removed deprecated functions, minor fixes.
Updated load/save to use IO callbacks. Added function to get required size.
Implemented more saving functionality. Improved logging.
Updated to use IO callbacks.