added payments periods, fixed contract documents count bug