Updated to Work With 2012
Critical Update

Changed all functions that were given parameter, float, to double as
well as the variables from float to double. The function "value" also
returns double instead of int which makes it work with decimals