Version 2.00: fully rewritten
Version 2.01: better default settings + fixed missing pyfile error
Version 2.02: code cosmetics
Version 2.03: several fixes