Implemented basic IRWLS.  Still some kinks to work out.