PS and PTY history added. Many small improvements made.