Fixed a problem with version comparison which caused it to overwrite the package
Updated documentation