sdp.py: add flag to output if any node is invalid
    miscellaneous fixes and documentation touch-ups

Signed-off-by: Jacob <jre2718@berkeley.edu>