cleanup code and comment on maximum number of processes (from cgd)