Adding doc string and fixining licence and nit-picking