Fixed #69

The function extract_dje_license is no longer writing to the output directly. Instead, it's returning the context.

New function "write licenses" is created to write the license.