Added debugging files in the hope of fixing clipping issues.
Other minor changes.