fix issue and add new feature -- by Alex Lee

1, fix issue #3 
2, add feature: log level and colorful log output