Added waitpid() syscall, fixed scheduler so it's less crashy
Waiting properly now, added check to scheduler