Fixed errors, removed magic, changed mantissa output to decimal