added copyright to mainfile