Tiny revision based on previous version

- ENH : add assert when constructing the elements
- NEW : add the class responsible for debugging
- CHG : change the name of some methods