fixed bugs in dot() function. added tests. dot() renamed from getDot()