Refactoring code && add examples && modify readme