Bug fixes and updates. Added improved AlertMessage functionality.  Added function to handle server commands.