added readline and writeline methods