fixed double assignment bug. added better spec coverage. Bumped version.