cleanup code
update license