Store cell type

Fixes #23