Fix #! line and add copyrights.