added console output to document