Added generation of column titles and tested