minor formatting
added closePatch() wrapper