fixed bugs in gene detection and added new options

fixed bugs in gene detection
added options for max divergence and to limit analysis to first N reads
added plotting script
added new script to import metadata