Add license
Refactor