Use reference of QHash value instead of retrieving and inserting
Indentation fixes, a little documentation