Adding debug, currentfolder, cleaning up some code. Version 0.3.4