OptiML updates, RBM and kNN applications, and some incidental white-space trimming