updated puppet.rb to show errors, fixed puppet syntax