updated license and fix