added example, fixed up saving, added clear button