cleaning up gcc -Wall warnings, added table_export and free to ws13.h