pothos-library: added registerSlot API call + comments