More comments + python rant

Added more comments to explain what's going on.
Also added a python implementation of the same concept using
numpy.linalg