Merge pull request #2 from peterwittek/master

Reformatting, basic optimization and vectorization of random number generator
fixed probability overshoot

Expression for assigning the complex number is the one that compiled on
the cluster.
corrected memory errors
Revert "corrected memory errors"

This reverts commit 8ca2b3e05076eb5057cb00ec04e45d70565fe17b.
Revert "Revert "corrected memory errors""

This reverts commit 2bf92f1dd7b9efe88c55ff138d88dba38193d525.
cleaned up header files