Make a little easier to understand
Cleaning up code, extracting class, adding test class
Adding some tests for pipe escape
Output one level array at this point