add debugging statements as well a first cut at a scheduler class for cron-like scheduling