Add comments and rethink the logic for summing imperial values