making style consistent
generate fixed for 1 layer
commented. cleaned
adjusted
first public release.
code is cleaner than it was ;-)