add linux platform & clean code
add code for linux platform
Merge pull request #68 from lihex/develop

add linux platform