Added checks for parameters
and function usage for network creation