added some license headers and did some cleanup