Fix typo, added minor function, add comments
A bit of control pipe stuff