gauss intergation coefficients and minor refactoring