major overhaul: commandline args, new net usage functionality