Added http error codes to all exceptions (mostly 500) and fixed some wording and exception related bugs
Tweaked a line in the example, added TODO reminder.