making the example files a little more modular
fixed parameter kernel caching compiler error and other minor erros