Added density parameter
Merge branch 'master' of github.com:paulvstheworld/hckt