adding test code, minor bug fixes, adding experiment runner code