correct implementation of pop command to account for the presence of a message
Merge pull request #6 from mdomi/master

correct implementation of pop command to account for the presence of a m...