Add support for custom datastream headers. Add license