typos fixed, enhanced and beautified for Linux and HPUX