something for storing features in persitent variables
added some error handling. While running the code on the complete dataset last time there was a crash.