Move converteds to the package level to make things clear, Fix alignment
warning for the stream header and stream footer. Make stream header and footer
private for better incapsulation.