Updated to conform to new Phimple version, updated Kernel to be more resilient when errors occur.