Improved simpleDE, added docstrings and testcases