Parser

Moves parsing into its own files.