adding API timeout option, adding examples dir with one example