Cleanup of GenericNetwork:  added flatten functionality to several methods, expanded doc strings