Added unit testing, fixed numerical issue (implementation of operator /=), enhanced API