Adding Doxygen documentation!
And refactoring new input handler class.