Minor improvements in style.
Added comments and anonymous variables (patterns).