updated code to better conform to puppet-lint specifications