Clean up the code.

Since now the design of Pulsed has significant changes from previous,
clean up the unused code.
Merge pull request #13 from EasonLiao/master

Clean up the code.