added missing method comments and applied WordPress code style.