changed endfigure and endtable definitions

Some packages I used complained about the definitions of endfigure and endfloat. I modified the cls to quiet those messages.