Train and serialize a model
More command line parameters/Error function
Fix dimensionality of dot product