Added documentation to terminal header file