added treating empty lines as zero columns
added reading from files