Added lots of print statements in main.c