Dealt with the problem of irregular shape agreements
Gone too far, but imlemented reduce
Made small changes to thesis