refactored kernel hyperparameter passing, variable names. cleaned up ipynb.