add doc, fixed subfolder bug