switch to /usr/ucb/ps for long output, add skipping duplicate checks
better output formating, use of stderr for errors