fixed errors in scripts, and pulled out common functions. proper commit this time
Merge branch 'master' of https://github.com/seru71/NGS-pipeline