add log function and add stopped state in status function
Merge pull request #27 from poupotte/master

add log function and add stopped state in status function