added starting script
1. fixed xpath warning 2. moved mkdir statements to main()