Update code
add licence