a version using snow pLappy instead of mclappy, this may work better windows
made changes so compilation works on windows