1. - Changed tree walks to record particles and cells in tree routines themselves (needed for periodic gravity later)
2. - Fixed some problems with new sinks and grad-h
3. - Added diagnostic output file
4. - Changed automatic restart code (for c2pap)