fix arc bug and add log support
Merge pull request #18 from shenyan1/arc_bugs

fix arc bug and add log support