Added copyright and more comments