minor comment improvements, formatting.
remove the test helper function and use the one in the scripts directory
instead since it serves the same role and DRYs out this component.
clean up comments
Remove all calls to float(), use locale-specific string to float
conversions. Fixes #81.