Fix geometry wireframe with a dark color scheme.
Don't iterate beyond the amount of columns here.
Code cleanup.

Const correctness, fix compiler warnings, remove dead code.