fixed route switching and highlighting, added new variables
extended debugger for multi-threading support, cleaned up code