updating copyright and adding some comments