Generator can now also use Note as source
Fixed bug... Math.min takes the smaller of both parameters... To achieve
a minimum value use Math.max and using the minimum value as one
parameter)
Refactoring
Removed exzessive logging