stp.h

update and make some corrections