Adding license header, style fixes