extracting standard address from the scripts; fixed bug in creating BTCScript from the address