remove implemented. Most warnings resolved

Implemented remove_block. Most warnings resolved