Added .DS_Store to .gitignore and fixed some minor errors in tableBuilder

Well, basically, I found some flaws in tableBuilder and decided to fix them.

P.S.: @daveismyname I sent you documentation about tableBuilder on dave@daveismyname.com