Fixed encoder specification for network arrays

- also added some more print statements for debugging