Minor bug resolve
Add txt support and lib (need more test)
Minor bug resolve