Improvded documentation. Added the first unittest for v2.