added average orf length calculation and fixed bug in n50 calculation