fixed terminal streaming and some markdown styling