waitpid implemented. implementation of exit started. cleanup is left here -> TODO