major logic fix, colspan pad support
indentation fix