Added another library function for generating macros for PPUs

In addition, added some comments in the partition validation section
of the front end compiler to make it easier to interpret what is
happenning there.