fix #18 - adds pushItems method; fixes .close and changes functions from using .isOpen to reading .close from pipe