Fixed a bunch of whitespace and added 'refresh'

Refresh method as per Pull #12.