move linestream to lstream
add license information