Cleanup: Adds more documentation to StreamProcessor.
Cleanup: Scrutinizer findings.