missing "static" from the save to preferences methods
added getVersionCode
math was Math with first letter in upperCase