Float

Few changes so that it compiles on macosx as well. Some floating point numerals were double, e.g. log(9.0/2.0), switched to using f on all explicit constants.