Modified app to read from html file.
Fixed errors with buffer for html file.