* doxy warning
* simplify code
* fixed a bug with box traces