Fixed warnings, updated license