More binary meta-analysis code

small bugfixes to make the program actually run