added the saving of the actual binary data and improved the setting of the srs