Corrected coding styles as suggested and fixed the bug for the hierarchy
path.