Fixes to ensure testing works fine on Perl 5.12, extended documentation. Thanks to andk for reporting issue #1