added behavior to save feature weights to a user-designated filename.