added headers for the P_OUT and P_IN functions giving a brief description of the functionality