added scripting
added doc string in scripting