added doc in code for check_unit_vector