At the moment the matlab code for order 526800 takes 2 hours to run.We would like to get a modified (optimized) version of the code that takes 10 minutes or less to run. it can be simpler. the intended code shouldn't compare four failure criteria's and rather it should only illustrate one failure criteria (Mohr-Coulomb) in both inclination and azimuth modes. Also I would like to get a PDF file describing the function of all .m files provided in the code (Bisection.m, Geo2wellStress.m, GeoStress.m, MogiCol.m, etc). Also the PDF should provide the equations used and the source of the equation from text.