Fix fatal error wehn removing scratchpad
update readme
update example