This shouldn't really be here. Unless this pull is still WIP I guess... I would prefer if these separate features / fixes (fix consistency, add perlinNoise()) were done in separate pull requests.