Cleaned up the duplicate code and
made the column code of roots_main_class() cleaner and commented.
Cleaned up the duplicate code and 
made the column code of roots_main_class() cleaner and commented.