improved file handling and structure, added parent program name and version to file types