added some more functions, like the survival functions and the Kernel.

The function are not properly tested and debuged.

Also a matlab file is added for proper plotting of the results