just trying to help now that i see you are working a lot. i have been trying and reading about this module all i have found and i am unable to make minimal height to work. the same with $content.
i hope in some moment you will have time to take a look.
thanks a lot for your work :)