Add use warnings to module and example. Min perl version is now v5.6.1.