tiny tweaks
fixed ruby -w warnings
more flexible guards: now can be array, can be added with guard do inside event block