rename resource structures, add more code for stream handling
update README.md