refactored getVersion to getVersionName; added versionCode to AppInfo (optional parameter for constructor; default null)