Add variable functionality

Fixes #14.
Adds functionaltiy for reading and assigning variables.