added license file, modified headers