added license headers and removed comments