parse_query_string is more forgiving of form type

Also added exception handling to docs