Fix 0^0 error, added some formatting