#202: added recursion for bibliography; various fixes