corrected columnindexing; tablemerger is now standalone class so it stores its own state