modify to agree with new Rule protocol
close streams on sub window closing
add doc for interfaces