Program can now write out ratings files