moved license to separate file
code cleanup