clean up and formatting with additional method edit to simplify.
clean up and formatting with additional method edit to simplify.

rapid7/nexpose-client,jhart-r7/nexpose-client,nbirnel/nexpose-client,gschneider-r7/nexpose-client,tomhart-r7/nexpose-client