Add license file
Many fixes