added file parsing
added folder/file writing
adopted to new interface