fix typos
switch type to context, closes #6