log map-reduce & distinct queries + more readable html formatting