Cleans up Makefiles and repository, fixes compilation of .f files
Fixes dimension mismatches
Adds missing Fortran matrix subroutines
Adds some of the XS related files.
Removes unneeded debugging output
Adds solution return and more tests

- Copies input matrices before minimization as routine modifies