code improvments on repacker.sh and malloc_s files additions