Fixed permissions, cleaned things up a bit, added new example