Added __abs__ and test and fixed __format__