Added licence header and code formatting

Signed-off-by: Grégory PLANCHAT <g.planchat@gmail.com>