Fixed stack programs, added cleanup to reduce to main stack program, added random population creation