new line object and file; added cursor position function