Fix erroneous function brackets in README

The documentation code had some incorrect brackets. Cleaned it up and removed any unneeded whitespace.