open transaction method

added the open transaction method along with validation for the open and
close methods.