Merge pull request #4 from liangji101/develop

add logger format
remove Array.prototype.contains
merge from pull request 4
fix UT error
change to scanner to function
update tests