Add code preview to prototypes

Closes #17