Fixed format duration to not print out time, added doctoring