Added comments - and fixed bug in table/column generation.

Autoincrement item broke - test.py - removing the term fixed the system.