fixes for special conditions
comments
add pdelay etc, docs
trim requires