added logging to a file, and fixed some typos

- the new version is fully compatible with the old version!
- users who want to have file logging should upgrade; for all others there is no need to.