fixed read/write statements and added lab10 programs