adjusted type conversion to avoid loss of precision.
tweaked human-readible log format.