Added license and doc comments
Added license