Heap state update

revised heap state shell command:
add the heap command to the shell command list.
converting tabs to spaces.
coding conventions.