Added copyright headers to codebase

This PR also adds a script to update copyright headers.