Updated reference files
Further refactoring of gsl as requested