Added licence and minor tweak