Minor formatting adjustments. Added trace() method to prototype to help performance.