Added Tools and Constants classes.
Added windowing code for desktop.