added heap usage % to debugging output in top left