fixed a bug in the status code node and added comments