Adding heap dump framework
Fix bug in puth
Fix heap dumping