Improved documentation of periodic function.