Add more comments. Rename function emptyRow to buildEmptyRow.