Added hash link behavior
Cleaned code
Added shrink-to-fit hashes