added convenience API to convert script to P2SH script and address
resolved some warnings