Added documentation for var_main and print_tests.