Created folders array, used it in publish.
Cleaned up app.d.