Updated some comments.
Fixed some bugs in UniqueNumberGenerator class.