added thermal motion. made marsaglia a submodule