Added License and minor fix