Reorganized some code. Made SVAR its own module.