Fix typos in the documentation.
Make the return of apply_transaction consistent.

We are returning defined($foo) wherever we run Yum commands.  This one
should behave just the same.