consolidated contact analysis functions to single repo, added directory selection, improved crossplatform compatiblity