Add debug mode
Explan some classes, add todo