Developing a component for PCMs in HB, I need help + other questions

See my answer in your other thread here:

More specifically for this thread: