Added tags options for file and directory, added some docs.