fix endsubsection by defining a new command, same with tightemize.

This should fix the cls issues.