Style fixes to the code. New macro HPIX_IS_MASKED added.