Refactored code (fix extra spaces and pylint errors)
Added version support and backward compatibility (for download only)