updated app (with version checking and other issues fixed)