added a parseSync function

Added a 'sync' version of the parse function, just to make it easier to consume from client code.