Added some comments to the code
Implemented special output for ACTION messages