Fixed some read & write. Current score = 11/17