Numerical studies in gravitational collapse