parsing

added some explanatory comments