cosmetic changes; changed cout to cerr in some but not all files