initial working system
removed unnecessary comments and restructured code
implemented schema with separate collection for tags and messages
solved issue #1