updated licence, added copyright message to main files