Updated a couple of functions in the experimental classifier. Added a function to write clascontents to a file