Feature/multivariate learning

variable naming here and below are so-so. E.g. "function" "functionInputs" etc. Any suggestions?