Add documentation of Input::register_class function.