Tweaked html and txt reading