added interpret functions

all functions working, needs more testing