Refactoring

minimal performance improvements
halfed wave amplitude
removed field of config.

that may be needed again if config can be loaded from txt file.
increased version string to 1.2.12