Added debug pin functionality, and main.h universal include file