Added some instructions
Added some more instructions for heap manipulation
small refactoring
simplified code thanks to the refactoring