Wrote up most of the code for the new stretched grid method