Merge pull request #4 from tonipenya/master

Tick communicator clears buffer after sending messages. AbstractFactor.getMessage returns 0 if there is no message for that neighbor.
Add test for TickCommunicationAdapter
removed unnecessary code.