Added some comments to filds and start to create period controls function