Cleaned up heap.js
start developing gui