removed unneeded exceptions and debug stuff
added settings and debug mode