update to v0.4.0 Closes #23, #27, #14, #26, #24, #25, and #13 See merge request toar/machinelearningtools!17