Add license
Minor fixes