Fixed some typo in comments and messages checking in session's MessageBag.
Added input processing class.