Fixed warnings, copyright