added creat system call
added newdir function for tmp directories
modified the creat-wrapper test to be more robust
messed up on the permissions bit for creat tests