added clearer comments for parse_passwd and parse_dict