Added scripting and modified documentations.