- MATRIX_W and MATRIX_H constants have been replaced by another set of constants with better names.
- Variables "x" and "y" have been replaced by "column" and "row" in several places.
- Added some temporal debug messages.
- Removed unused code.
- Minor fixes.