fixes #44 issue with celled borders. Additionally fixes inverted celled tables