Limit input code field

Closes #40