added a title to doc and made some changes in scipt