creating draw debug and isolating functions

some functions was separated into pieces to be more easy to understand.
Creating a debugMatrix to show on screen the matrix created to make easy
to understand what is going on.
the default functions need a better merger

some old bug fixed need to be recovered and merged. Nothing really new,
just a good merge.
simple and better

The expandMatrix was too complex and still was not working fine. After
some time of debug I believe that is very better now.
making the merge of columns

Columns now merge. Create a default image.