Added back file IO for saving solutions