Corrected Normilisation factor and added more zeros to the check if near zero