Rename problem environment
Separate main into header and problems
Change factorials.tex to use new problem command