Added: version.json is updated after update.
Fixed: Some refactoring and minor bug fixes.