specs is now a class

took the bulk of the codes out of main.tex and put them in specs.cls,
now main.tex is just used to compile a whole spec, specTemplate is
largely unchanged