add ex83
fix warning implicit use of wait
Fixed inv.c malloc