Merge pull request #3 from merces/master

Added malloc_s and, code improvements and small fixes
fix wrong type in python bindings
addstr tweaks
added warning options
fixed signdness comparisions