Started refactor to blob.h
Refactor complete. Now in blob.h