Comparison, not assignment
Add correct copyright and license
Fix compiler diagnostics