Added writetofile method in score writer that writes a session to a text file in application support.