added comments and fork()