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. I'm not aware of any reason this would cause problems, but if so, please let me know.