Fix typos and improve wording in all examples, sync Perl example