remove TODOs and fix format
add license header