Planning Hierarchies and their Connections to Language