significant progress in membrane code development

but still not complete