provide a main spark driver class, fix bugs in table