fix everything that is wrong
add licence