make global variable a class variable
Print own version number in usage (fixes #12)
fix reading/writing utf-8 files