block heights adjusted; almost ready for the tag; p2sh checks are taken out
UNTESTED !!!