added append function
append returns to the line variable
updated so first node is not empty
working on read_lines function