implemented license header parsing
implemented writing side