Minor bugfixes in loadfolder
Added debugPrint, loadfolder uses __main__

debugPrint is a slightly more fine print for debugging
loadfolder will now execute from commandline, but not if included
directly