Add txt methods

Fix #7