refactored Nodule types for hierarchy, refactored Nodule.getNodule to Application.getNodule.