added comments and possibility to choose if an item is a folder