Finished translating parse function

Now to do the other parsing related things and write tests!