coltype and table name options

I finally got some time to look at this and surprisingly ( even if im not sure this is the cleanest way) I was able to iron out the kinks on the errors I was getting before, I also brought back to the master some changes I made to my working copy that allowed me to change the name of the output table.