update
rewritten from scratch. Every operation is automated using bash and R. Now working on docs