CPAN tests enabled and passing

Hi dwery,

this commit enables all CPAN recommended tests in the dist.ini. I have made sure all tests pass by updating the Perl code so that is follows the recommended code style. 

Most of the updates are formatting changes.

One request: could you have a short look at the POD documentation I added and update the stubs where info is missing? If you don't have time, no problem. Adding a bit of documentation would help other users of your module. I currently don't have time to work on this.

Kind regards,
 Lieven.