Some format fixing, unit_vector almost works as intended