clean up includes in streamoutput

refactor endstops