added path.sep and better documentation