replaces files in original folder bug fixes and improvements