DOM Modification, debug mode, other improvements