lots of bug fixes; pipe worked, homework 3 submitted