Fixed bug where document was closed even though autosave is disabled.
Fixed revert units bug.
Updated readme and bumped up version to 2.2.1.
Added packaging files.