patch for #4

also added .travis.yml config file for compile test.