Updated puppet function declaration for puppet 3

Puppet 3 now ensures that all declared functions are passed an argument that
holds the resulting state.