documentation cleanup
big style cleanup and making a test pass from the pipe refactor