fixed nodes and nodeletes issues
removed unused variables
added patch for correct initialization
error checking is done with time too