Added license to the code base
A little code cleanup