Added (dirty hack) non-logarithmic version and various notes and tests. Mono (chennalCount 1) is not working correctly.  It's really about time I learned how to do Objective-C instead of my usual trial and error approach. :)