Cleaned up code.

- Added usage.
- Cleaned up debugging traces.