Fixed bugs, now works.

Refactored the XsdHandler and fixed a bug that loaded the filename
instead of filepath. Compact code for XsdHandler. Fixed the variable
table empty textboxes. Minor refactors on exceptions, returns & debug.