Reformated the code
Added license set feature