Add copyright and update build script