Added more comments and increased the structure of the code
Fixed issue with minimum column size input