Fixes for in app purchase stuff, also added a utility function for nicer printing of strings with decimals.