pay period , and syntax

pay period controller done and fixed some syntax to make code more standard / match throughout