[Toolkit.Input] Added XML comments and simplified code