Added comments and #defines for printing debug info.