add gitignore
add tests and fix messages
update gitignore to exclude 'env' folder
add collector protocol and tests