Set precision, fix constant multiples, add docstrings.
Fix memory limit issues