rbf kernel implementation and code clean up
Adding rbf kernel and code cleanup