Fixed internal memory code
Fixed Leak settings not being saved
close #22
close #24