added several comments, single var pattern, fixed #58