moved dotnotation code to separate module.  Fixed error test.