added function to create table
added rowcount to table struct
fixed compiler warnings of mixed types