Added copyright notice, fixed line endings.