Checked ListenAction. It works correctly. fixes #10, fixes #26
Reformat code