Code cleanup and JSLint compliance
Renaming stuff
Added field tabbing across ui tabs
More code commenting