update code, added example files