WRITE, WRITELN, READ added. Tests updated. New test added.