Improvements and program demonstrations of the steepest descent method