Comments for main and exception

Finished commenting for the main and companyhierarchyexception classes