Add a unit test for the round() method, then simplify the algorithm to one provided by Alex
Minor tweaks