Fix bug in unitvec and remove some of the unneeded exports.