incr/decr methods atomic against race conditions.

incr and decr methods are being performed as an atomic operation. This patch also resolves the issue #30