Restructre & addition of setting pwm

Restructured source code to separate header files from source files.
Added pwm_exec function call.