.cls class file suffix, package files .sty suffix.
The following article myself clear:
http://tex.loria.fr/general/new/clsguide.html
if the commands could be used with any document class, then make them a package; and if not, then make them a class.
Is the difference between global and local.