Depreaction fixes

This corrects most, but not all, of #1. The remaining issue(s?) is on line 133, ` dir.createReader().readEntries()`. I tried to fix it, but I do not have the time to nor could I figure it out. Also removed some (possibly large) console statements.

@davidderaedt