Update docs and add licence headers