Add more comments. Add debugging mode in builder.py