Add main parse() function to chunk module

New parse() function to convert code chunk into a Dictionary.

Add corresponding test.