added console class.

added console class.
modified header comments.