Documented everything.
Tests for debug.