diff --git a/README.md b/README.md
index 220d01c73..ac455c7cf 100644
--- a/README.md
+++ b/README.md
@@ -1,662 +1,64 @@
-[![TeamCity Simple Build Status](http://chihua.cab.spbu.ru:3000/app/rest/builds/buildType:(id:SPAdesBasicTests_RunAll)/statusIcon)](http://chihua.cab.spbu.ru:3000/buildConfiguration/SPAdesBasicTests_RunAll?mode=builds)
-[![License](https://img.shields.io/badge/licence-GPLv2-blue)](https://www.gnu.org/licenses/old-licenses/gpl-2.0)
-[![GitHub release (latest by date)](https://img.shields.io/github/v/release/ablab/spades)](https://github.com/ablab/spades/releases/)
-[![GitHub Downloads](https://img.shields.io/github/downloads/ablab/spades/total.svg?style=social&logo=github&label=Download)](https://github.com/ablab/spades/releases)
-[![BioConda Downloads](https://anaconda.org/bioconda/spades/badges/downloads.svg)](https://anaconda.org/bioconda/spades)
-[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md)
+# BinSPreader - binning refining using assembly graphs
+## MANUAL
-__SPAdes 3.15.3 Manual__
+### Description
-1. [About SPAdes](#sec1)
- 1.1. [Supported data types](#sec1.1)
- 1.2. [SPAdes pipeline](#sec1.2)
- 1.3. [SPAdes performance](#sec1.3)
-2. [Installation](#sec2)
- 2.1. [Downloading SPAdes Linux binaries](#sec2.1)
- 2.2. [Downloading SPAdes binaries for Mac](#sec2.2)
- 2.3. [Downloading and compiling SPAdes source code](#sec2.3)
- 2.4. [Verifying your installation](#sec2.4)
-3. [Running SPAdes](#sec3)
- 3.1. [SPAdes input](#sec3.1)
- 3.2. [SPAdes command line options](#sec3.2)
- 3.3. [Assembling IonTorrent reads](#sec3.3)
- 3.4. [Assembling long Illumina paired reads (2x150 and 2x250)](#sec3.4)
- 3.5. [HMM-guided mode](#hmm)
- 3.6. [SPAdes output](#spadesoutsec)
- 3.7. [plasmidSPAdes output](#plasmidout)
- 3.8. [metaplasmidSPAdes and metaviralSPAdes output](#metapv)
- 3.9. [biosyntheticSPAdes output](#bgc)
- 3.10. [Assembly evaluation](#eval)
-4. [Stand-alone binaries released within SPAdes package](#sec4)
- 4.1. [k-mer counting](#sec4.1)
- 4.2. [k-mer coverage read filter](#sec4.2)
- 4.3. [k-mer cardinality estimating](#sec4.3)
- 4.4. [Graph construction](#sec4.4)
- 4.5. [Long read to graph alignment](#sec4.5)
- 4.5.1. [hybridSPAdes aligner](#sec4.5.1)
- 4.5.2. [SPAligner](#sec4.5.2)
-5. [Citation](#sec5)
-6. [Feedback and bug reports](#sec6)
+BinSPreader is a novel tool that attempts to refine metagenome-assembled genomes (MAGs) obtained from existing tools. BinSPreader exploits the assembly graph topology and other connectivity information, such as paired-end and Hi-C reads, to refine the existing binning, correct binning errors, propagate binning from longer contigs to shorter contigs and infer contigs belonging to multiple bins.
-
-# About SPAdes
+### Installation
-SPAdes - St. Petersburg genome assembler - is an assembly toolkit containing various assembly pipelines. This manual will help you to install and run SPAdes. SPAdes version 3.15.3 was released under GPLv2 on July 22, 2021 and can be downloaded from .
-
-The latest SPAdes paper describing various pipelines in a protocol format is available [here](https://currentprotocols.onlinelibrary.wiley.com/doi/abs/10.1002/cpbi.102).
-
-
-## Supported data types
-
-The current version of SPAdes works with Illumina or IonTorrent reads and is capable of providing hybrid assemblies using PacBio, Oxford Nanopore and Sanger reads. You can also provide additional contigs that will be used as long reads.
-
-Version 3.15.3 of SPAdes supports paired-end reads, mate-pairs and unpaired reads. SPAdes can take as input several paired-end and mate-pair libraries simultaneously. Note, that SPAdes was initially designed for small genomes. It was tested on bacterial (both single-cell MDA and standard isolates), fungal and other small genomes. SPAdes is not intended for larger genomes (e.g. mammalian size genomes). For such purposes you can use it at your own risk.
-
-If you have high-coverage data for bacterial/viral isolate or multi-cell organism, we highly recommend to use [`--isolate`](#isolate) option.
-
-SPAdes 3.15.3 includes the following additional pipelines:
-
-- metaSPAdes - a pipeline for metagenomic data sets (see [metaSPAdes options](#meta)).
-- plasmidSPAdes - a pipeline for extracting and assembling plasmids from WGS data sets (see [plasmid options](#plasmid)).
-- metaplasmidSPAdes - a pipeline for extracting and assembling plasmids from *metagenomic* data sets (see [plasmid options](#plasmid)).
-- rnaSPAdes - a *de novo* transcriptome assembler from RNA-Seq data (see [rnaSPAdes manual](assembler/rnaspades_manual.html)).
-- biosyntheticSPAdes - a module for biosynthetic gene cluster assembly with paired-end reads (see [biosynthicSPAdes options](#biosynthetic)).
-- rnaviralSPAdes - a *de novo* assembler tailored for RNA viral datasets (transcriptome, metatranscriptome and metavirome).
-- coronaSPAdes is a special mode of rnaviralSPAdes specifically aimed for SARS-CoV-2 *de novo* assembly.
-
-In addition, we provide several stand-alone binaries with relatively simple command-line interface: [k-mer counting](#sec4.1) (`spades-kmercounter`), [assembly graph construction](#sec4.2) (`spades-gbuilder`) and [long read to graph aligner](#sec4.3) (`spades-gmapper`). To learn options of these tools you can either run them without any parameters or read [this section](#sec4).
-
-[]()
-
-
-## SPAdes pipeline
-
-SPAdes comes in several separate modules:
-
-- [BayesHammer](http://bioinf.spbau.ru/en/spades/bayeshammer) - read error correction tool for Illumina reads, which works well on both single-cell and standard data sets.
-- IonHammer - read error correction tool for IonTorrent data, which also works on both types of data.
-- SPAdes - iterative short-read genome assembly module; values of K are selected automatically based on the read length and data set type.
-- MismatchCorrector - a tool which improves mismatch and short indel rates in resulting contigs and scaffolds; this module uses the [BWA](http://bio-bwa.sourceforge.net) tool \[[Li H. and Durbin R., 2009](http://www.ncbi.nlm.nih.gov/pubmed/19451168)\]; MismatchCorrector is turned off by default, but we recommend to turn it on (see [SPAdes options section](#correctoropt)).
-
-We recommend to run SPAdes with BayesHammer/IonHammer to obtain high-quality assemblies. However, if you use your own read correction tool, it is possible to turn error correction module off. It is also possible to use only the read error correction stage, if you wish to use another assembler. See the [SPAdes options section](#pipelineopt). []()
-
-
-## SPAdes performance
-
-In this section we give approximate data about SPAdes performance on two data sets:
-
-- [Standard isolate *E. coli*](https://www.ncbi.nlm.nih.gov/sra/?term=ERR008613); 6.2Gb, 28M reads, 2x100bp, insert size ~ 215bp
-- [MDA single-cell *E. coli*](http://cab.spbu.ru/files/spades_test_datasets/ecoli_sc/); 6.3 Gb, 29M reads, 2x100bp, insert size ~ 270bp (originally downloaded from [here](http://bix.ucsd.edu/projects/singlecell/nbt_data.html))
-
-We ran SPAdes with default parameters using 16 threads on a server with Intel Xeon 2.27GHz processors. BayesHammer runs in approximately half an hour and takes up to 8Gb of RAM to perform read error correction on each data set. Assembly takes about 10 minutes for the *E. coli* isolate data set and 20 minutes for the *E. coli* single-cell data set. Both data sets require about 8Gb of RAM (see notes below). MismatchCorrector runs for about 15 minutes on both data sets, and requires less than 2Gb of RAM. All modules also require additional disk space for storing results (corrected reads, contigs, etc) and temporary files. See the table below for more precise values.
-
-
-
-
Data set
-
E. coli isolate
-
E. coli single-cell
-
-
-
-
Stage
-
Time
-
Peak RAM usage (Gb)
-
Additional disk space (Gb)
-
Time
-
Peak RAM usage (Gb)
-
Additional disk space (Gb)
-
-
-
-
BayesHammer
-
24m
-
7.8
-
8.5
-
25m
-
7.7
-
8.6
-
-
-
-
SPAdes
-
8m
-
8.4
-
1.4
-
10m
-
8.3
-
2.1
-
-
-
-
MismatchCorrector
-
10m
-
1.7
-
21.4
-
12m
-
1.8
-
22.4
-
-
-
-
Whole pipeline
-
42m
-
8.4
-
23.9
-
47m
-
8.3
-
25.1
-
-
-
-Notes:
-
-- Running SPAdes without preliminary read error correction (e.g. without BayesHammer or IonHammer) will likely require more time and memory.
-- Each module removes its temporary files as soon as it finishes.
-- SPAdes uses 512 Mb per thread for buffers, which results in higher memory consumption. If you set memory limit manually, SPAdes will use smaller buffers and thus less RAM.
-- Performance statistics is given for SPAdes version 3.14.1.
-
-
-# Installation
-
-
-SPAdes requires a 64-bit Linux system or Mac OS and Python (supported versions are Python 2.7, and Python3: 3.2 and higher) to be pre-installed on it. To obtain SPAdes you can either download binaries or download source code and compile it yourself. []()
-
-In case of successful installation the following files will be placed in the `bin` directory:
-
-- `spades.py` (main executable script)
-- `metaspades.py` (main executable script for [metaSPAdes](#meta))
-- `plasmidspades.py` (main executable script for [plasmidSPAdes](#plasmid))
-- `metaplasmidspades.py` (main executable script for [metaplasmidSPAdes](#metaextrachromosomal))
-- `metaviralspades.py` (main executable script for [metaviralSPAdes](#metaextrachromosomal))
-- `rnaspades.py` (main executable script for [rnaSPAdes](rnaspades_manual.html))
-- `rnaviralspades.py` (main executable script for rnaviralSPAdes)
-- `coronaspades.py` (wrapper script for coronaSPAdes mode)
-- `spades-core` (assembly module)
-- `spades-gbuilder` (standalone graph builder application)
-- `spades-gmapper` (standalone long read to graph aligner)
-- `spades-kmercount` (standalone k-mer counting application)
-- `spades-hammer` (read error correcting module for Illumina reads)
-- `spades-ionhammer` (read error correcting module for IonTorrent reads)
-- `spades-bwa` ([BWA](http://bio-bwa.sourceforge.net) alignment module which is required for mismatch correction)
-- `spades-corrector-core` (mismatch correction module)
-
-
-## Downloading SPAdes Linux binaries
-
-To download [SPAdes Linux binaries](http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3-Linux.tar.gz) and extract them, go to the directory in which you wish SPAdes to be installed and run:
-
-``` bash
-
- wget http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3-Linux.tar.gz
- tar -xzf SPAdes-3.15.3-Linux.tar.gz
- cd SPAdes-3.15.3-Linux/bin/
+```
+cd spades/assembler/
+mkdir build && cd build && cmake ../src
+make bin-refine
```
+Now to run BinSPreader move to folder `assembler/` and execute
-In this case you do not need to run any installation scripts - SPAdes is ready to use. We also suggest adding SPAdes installation directory to the `PATH` variable. []()
-
-Note, that pre-build binaries do not work on new Linux kernels.
-
-
-## Downloading SPAdes binaries for Mac
-
-To obtain [SPAdes binaries for Mac](http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3-Darwin.tar.gz), go to the directory in which you wish SPAdes to be installed and run:
-
-``` bash
-
- curl http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3-Darwin.tar.gz -o SPAdes-3.15.3-Darwin.tar.gz
- tar -zxf SPAdes-3.15.3-Darwin.tar.gz
- cd SPAdes-3.15.3-Darwin/bin/
-```
-
-Just as in Linux, SPAdes is ready to use and no further installation steps are required. We also suggest adding SPAdes installation directory to the `PATH` variable. []()
-
-
-## Downloading and compiling SPAdes source code
-
-If you wish to compile SPAdes by yourself you will need the following libraries to be pre-installed:
-
-- g++ (version 5.3.1 or higher)
-- cmake (version 3.5 or higher)
-- zlib
-- libbz2
-
-If you meet these requirements, you can download the [SPAdes source code](http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3.tar.gz):
-
-``` bash
-
- wget http://cab.spbu.ru/files/release3.15.3/SPAdes-3.15.3.tar.gz
- tar -xzf SPAdes-3.15.3.tar.gz
- cd SPAdes-3.15.3
-```
-
-and build it with the following script:
-
-``` bash
-
- ./spades_compile.sh
-```
-
-SPAdes will be built in the directory `./bin`. If you wish to install SPAdes into another directory, you can specify full path of destination folder by running the following command in `bash` or `sh`:
-
-``` bash
-
- PREFIX= ./spades_compile.sh
-```
-
-for example:
-
-``` bash
-
- PREFIX=/usr/local ./spades_compile.sh
-```
-
-which will install SPAdes into `/usr/local/bin`.
-
-After installation you will get the same files (listed above) in `./bin` directory (or `/bin` if you specified PREFIX). We also suggest adding `bin` directory to the `PATH` variable. []()
-
-
-## Verifying your installation
-
-For testing purposes, SPAdes comes with a toy data set (reads that align to first 1000 bp of *E. coli*). To try SPAdes on this data set, run:
-
-``` bash
-
- /bin/spades.py --test
-```
-
-If you added `bin` folder from SPAdes installation directory to the `PATH` variable, you can run:
-
-``` bash
-
- spades.py --test
-```
-
-For the simplicity we further assume that `bin` folder from SPAdes installation directory is added to the `PATH` variable.
-
-If the installation is successful, you will find the following information at the end of the log:
-
-``` plain
-
-===== Assembling finished. Used k-mer sizes: 21, 33, 55
-
- * Corrected reads are in spades_test/corrected/
- * Assembled contigs are in spades_test/contigs.fasta
- * Assembled scaffolds are in spades_test/scaffolds.fasta
- * Assembly graph is in spades_test/assembly_graph.fastg
- * Assembly graph in GFA format is in spades_test/assembly_graph_with_scaffolds.gfa
- * Paths in the assembly graph corresponding to the contigs are in spades_test/contigs.paths
- * Paths in the assembly graph corresponding to the scaffolds are in spades_test/scaffolds.paths
-
-======= SPAdes pipeline finished.
-
-========= TEST PASSED CORRECTLY.
-
-SPAdes log can be found here: spades_test/spades.log
-
-Thank you for using SPAdes!
-```
-
-
-# Running SPAdes
-
-
-## SPAdes input
-
-SPAdes takes as input paired-end reads, mate-pairs and single (unpaired) reads in FASTA and FASTQ. For IonTorrent data SPAdes also supports unpaired reads in unmapped BAM format (like the one produced by Torrent Server). However, in order to run read error correction, reads should be in FASTQ or BAM format. Sanger, Oxford Nanopore and PacBio CLR reads can be provided in both formats since SPAdes does not run error correction for these types of data.
-
-To run SPAdes 3.15.3 you need at least one library of the following types:
-
-- Illumina paired-end/high-quality mate-pairs/unpaired reads
-- IonTorrent paired-end/high-quality mate-pairs/unpaired reads
-- PacBio CCS reads
-
-Illumina and IonTorrent libraries should not be assembled together. All other types of input data are compatible. SPAdes should not be used if only PacBio CLR, Oxford Nanopore, Sanger reads or additional contigs are available.
-
-SPAdes supports mate-pair only assembly. However, we recommend to use only high-quality mate-pair libraries in this case (e.g. that do not have a paired-end part). We tested mate-pair only pipeline using Illumina Nextera mate-pairs. See more [here](#hqmp).
-
-Notes:
-
-- It is strongly suggested to provide multiple paired-end and mate-pair libraries according to their insert size (from smallest to longest).
-- It is not recommended to run SPAdes on PacBio reads with low coverage (less than 5).
-- We suggest not to run SPAdes on PacBio reads for large genomes.
-- SPAdes accepts gzip-compressed files.
-
-### Read-pair libraries
-
-By using command line interface, you can specify up to nine different paired-end libraries, up to nine mate-pair libraries and also up to nine high-quality mate-pair ones. If you wish to use more, you can use [YAML data set file](#yaml). We further refer to paired-end and mate-pair libraries simply as to read-pair libraries.
-
-By default, SPAdes assumes that paired-end and high-quality mate-pair reads have forward-reverse (fr) orientation and usual mate-pairs have reverse-forward (rf) orientation. However, different orientations can be set for any library by using SPAdes options.
-
-To distinguish reads in pairs we refer to them as left and right reads. For forward-reverse orientation, the forward reads correspond to the left reads and the reverse reads, to the right. Similarly, in reverse-forward orientation left and right reads correspond to reverse and forward reads, respectively, etc.
-
-Each read-pair library can be stored in several files or several pairs of files. Paired reads can be organized in two different ways:
-
-- In file pairs. In this case left and right reads are placed in different files and go in the same order in respective files.
-- In interleaved files. In this case, the reads are interlaced, so that each right read goes after the corresponding paired left read.
-
-For example, Illumina produces paired-end reads in two files: `R1.fastq` and `R2.fastq`. If you choose to store reads in file pairs make sure that for every read from `R1.fastq` the corresponding paired read from `R2.fastq` is placed in the respective paired file on the same line number. If you choose to use interleaved files, every read from `R1.fastq` should be followed by the corresponding paired read from `R2.fastq`.
-
-If adapter and/or quality trimming software has been used prior to assembly, files with the orphan reads can be provided as "single read files" for the corresponding read-pair library.
-
-
-If you have merged some of the reads from your paired-end (not mate-pair or high-quality mate-pair) library (using tools s.a. [BBMerge](https://jgi.doe.gov/data-and-tools/bbtools/bb-tools-user-guide/bbmerge-guide/) or [STORM](https://bitbucket.org/yaoornl/align_test/overview)), you should provide the file with resulting reads as a "merged read file" for the corresponding library.
-Note that non-empty files with the remaining unmerged left/right reads (separate or interlaced) **must** be provided for the same library (for SPAdes to correctly detect the original read length).
-
-In an unlikely case some of the reads from your mate-pair (or high-quality mate-pair) library are "merged", you should provide the resulting reads as a SEPARATE single-read library.
-
-### Unpaired (single-read) libraries
-
-By using command line interface, you can specify up to nine different single-read libraries. To input more libraries, you can use [YAML data set file](#yaml).
-
-Single librairies are assumed to have high quality and a reasonable coverage. For example, you can provide PacBio CCS reads as a single-read library.
-
-Note, that you should not specify PacBio CLR, Sanger reads or additional contigs as single-read libraries, each of them has a separate [option](#inputdata). []()
-
-
-### PacBio and Oxford Nanopore reads
-
-SPAdes can take as an input an unlimited number of PacBio and Oxford Nanopore libraries.
-
-PacBio CLR and Oxford Nanopore reads are used for hybrid assemblies (e.g. with Illumina or IonTorrent). There is no need to pre-correct this kind of data. SPAdes will use PacBio CLR and Oxford Nanopore reads for gap closure and repeat resolution.
-
-For PacBio you just need to have filtered subreads in FASTQ/FASTA format. Provide these filtered subreads using `--pacbio` option. Oxford Nanopore reads are provided with `--nanopore` option.
-
-PacBio CCS/Reads of Insert reads or pre-corrected (using third-party software) PacBio CLR / Oxford Nanopore reads can be simply provided as single reads to SPAdes.
+`build/bin/hicspades-binner`
-### Additional contigs
+### Input
-In case you have contigs of the same genome generated by other assembler(s) and you wish to merge them into SPAdes assembly, you can specify additional contigs using `--trusted-contigs` or `--untrusted-contigs`. First option is used when high quality contigs are available. These contigs will be used for graph construction, gap closure and repeat resolution. Second option is used for less reliable contigs that may have more errors or contigs of unknown quality. These contigs will be used only for gap closure and repeat resolution. The number of additional contigs is unlimited.
+The tool has two mandatory options:
+- Assembly graph file in [GFA 1.0 format](https://github.com/GFA-spec/GFA-spec/blob/master/GFA1.md), with scaffolds included as path lines. Alternatively, scaffolds can be provided separately using `--path` option.
+-Initial
-Note, that SPAdes does not perform assembly using genomes of closely-related species. Only contigs of the same genome should be specified.
+Synopsis: `hicspades-binner