Add comments, fixed fork() call, shrink median()