Added parsing functionality and basic tests.