Cleanup inline docs
Move occurence hash creation to thread to gain a little UI perf