Removed useless comments
Inlined trigger
Formatting
Inlined ctors
Formatting
Removed runInput (it's now part of runUpdate)
Adapted to newest libs
Input module refactoring and small optimizations