nnmf

helper to do nnmf initialization and updates
we should use javadoc comments for classes and methods.