Add license header
Remove unneeded code