added getStats function; updated circles example; fixes #1