Changed internal class:
Added reset() to clear a block in one time.
clear() needs to be invoked twice to clear a frozen block.
Added more commits.