added documentation, bugfix escaping backslashes