Chef enhancements

a couple misc tidies, including writing a pure java example