added functionality

added functionality to train in a window instead of the whole document
and to choose between ternary vectors and vectors from random normal
distribution