Added dot product
Added smvp

Also fixed "endif" statement in .h files