Moved auxiliar functions to different module.
Implemented parsing of paragraphs inside tables.
Improved separation of independent lines.

Also fixed 3 tests where the error was occuring.