fix w example
vector dot product
add unit test