added malloc_s (safe) function, many code improvments/fixes
code improvments on repacker.sh and malloc_s files additions
replace strcmp by strncmp for security reasons
fix comparision beetween signed and unsigned integers
Merge pull request #3 from merces/master

Added malloc_s and, code improvements and small fixes