Moved grid explanation to side, with line numbers; added read_line method and tests