added some comments and made a few wstrings constant.