Added row/col/direction fields. Basic undo/redo. Fixed HTML output to use CSS numbers rather than images. Bugfixes