fixed bug in Matern d=7 kernel

Fixed bug in matern with d=7.  Also made the code more readable to understand the function handles