bugfix: pipe packet dispatcher

packets was always dispatched to last created pipe. fixed. some minor
typos and comments.