add license header to files; fix background bug