Improved the code somehow, but this is just a temporary commit.
Added methods to simplify the morphology.