Limit laws for the modulus of continuity of the partial sum process and for the shepp statistic