some explanation in comments added

As @steipete asked, some explanations to non-obvious code added. (regarding #229)