add sw framework code
add main, just partially
Merge pull request #2 from konghan/master

merge action