added Message class
refactored the Active state
periodic searches work!