Adding three-valued matrices, implementing Bernoulli matrices as a special case, and adding the siblings of the python routine 'PrintVersion'