bugfix (compound event taken as kleene)
fixed warnings
added tests