Creation of LICENSE and some changes in average.py