added received timestamp to messages
bugfix redelivery, no more duplicate messages
bugfix receiving messages
added javadoc