Version Stable 1.0

Added basic mutithread-proof locks through the codes. Still need to be
tested more....