lib/mnit: update doc and style of the `input` module