Add support for parsing definitions

this addresses #4