Let me give you some advice: Next time, put all of your requirements in your original post, lol. All of these changing req's is really discouraging because everytime I think you're covered, something new pops up.
As for the password prompt, you should be able to bypass that and open the file as read only by updating this line:
To be this instead:
If you still get the password prompt, that means the file requires a password to even be opened, and you will need to type in the password.
As for the second, searching for alternate spellings of kg/ft, update this line:
To be this instead:
Bookmarks