fixed scripts to explicitly perform wait, and do not assume garbage collectin effect.
Refactored learning algorithms (but still work in progress... One of the problem is that batch based algorithms are very slow and online algorithms are far better in my experiments.)
fixed script to support the latest learning code
fixed documentation for the latest regularization
updated documentation