decomposed YZ to separate variables
change initByLearning to adapt to new version
changed flipProb to alterProb
edits some comments
lisa uses 12 core machines by default