Fixed problem with tables and &lt; and &gt; simbols
Debug
FIx. Removed debug. Adde check for categoryies
Fix.
Refacttoring.
Fix.