Documentation update.

Added documentation for interrupt, pwm and spi modules.