Update readme to describe cookbook
Added minitests and made env var setting idempotent