bug fixes, it kinda sorta works now!
rules are more or less running now. removed lots of debug prints
added DEBUG secret command and few bug fixes