Added contact area calculation (but segfaults on exit)