clean up tmp file
add license statement