refactor net.cuda to net.run so that examples run on machines without cuda (without messing with code)
refactor net.cuda to net.run so that examples run on machines without cuda (without messing with code)