New simplex code with a few edits