Updating the puppet library with assorted bug fixes and a few features.