added script for training vectors