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