Add comments to powerof2.c

Add comments to help user to understand the codde.