Changed how to get the number of recurring node types in file, and added comments to XML interface