unified CreateL and CreateL2D and added documentation and examples
completely re-written permudist (more elegantly programmed)