Added helpful error messages

Also changed files to .txt format.