Simplified reading files, fixed bug with column headings