Unit tests included. Additional loss functions TBD.
-- update to include pull request changes changes include: parameter renaming, changing to mixin, moving model to compile, additional tests, fixing huber loss