handling the too-many-anchors problem

added some code to test whether we are requesting too many topics.
Also a python script to plot reconstruction error as a function of
number of topics.