Cleanup Perl API example, minor edits to API documentation