bug fix by code review.
implements data disk manager and management of disk state code.
update TODO