Code formatting fixes
Refactor app version checking