added comments and error handling
added comments and error handling

jwhite007/genologics,withrocks/genologics,BigelowLab/genologics,SciLifeLab/genologics,Galithil/genologics,senthil10/genologics,nsc-norway/genologics