Use this line of code for listing categories.

 

       $terms_list = get_terms(array('taxonomy'=>'category', 'hide_empty'=>FALSE, 'parent'=>0));
       print_r($terms_list);