fixed curly brace mistake and added schedule method to activate scheduled events by name
minor clean up: Added some const qualifiers