further development and bug fixes for hip_roof(..)