debug and documentation added to bioblend script