Improved the function comments for read_line() and slightly tweaked