simplifies algorithm and improves documentation
removes complicated stuff
removes more complicated stuff
adds more "down to earth" version...
fixes broken comment