implement Detect

Closes #1.
That forbids this as default. Maybe remove old license only with a flag?