Improved documentation. Improved message handling - Added ended alert exception.