clean up code and add easier example in extended class
update readme to include optional configuration