updated files from email on Aug 16, update curVal and training functions
Merge pull request #2 from daltus/master

updated files from email on Aug 16, update curVal and training functions