refactor example and add README