Adding some stdio calls, fixing write syscalls to use const pointers, adding strncpy