added outfile; fixed runtime errors; soln not converging