Code cleanup
Added a manual page for terminal(1)