removed obsolete globals, moved per instance vars to __init__ see issue #24