malloc recipe

Also add printk statements

This commit is intended to be rebased later for greater clarity