updated print(), added folder generation