Fixed event handling logic (#5) / Added standalone.nocmd (closes #9)