Moved constants out of a function so that other functions can use them later.
Corrected a bug in the creation of the closed class pos training set.