Add license headers, encoding markers, module docstring to all files